|
The Smart ComboBox Component > FSmartComboBoxClass.allowDuplicates(bool) |
FSmartComboBoxClass.allowDuplicates(bool)
Availability
Macromedia Flash Player 6.
Usage
myCombo.allowDuplicates(bool);
Parameters
|
|
Boolean; When this is set to true, the history will allow duplicates. When this is set to false, no duplicates will be allowed in the history. The default value is false. |
Returns
Nothing.
Description
This method allows you to configure the component to allow multiple items with
the same label in the history. In most cases, you will want this false because
it is redundant to have the same items listed more than once.
Example
The following example shows how to use the method call in order to restrict
duplicates.
myCombo.allowDuplicates(false);
See also
FSmartComboBox.addItem
FSmartComboBox.addItemAt